package models

import (
	"time"
)

type Risk struct {
	ID        int       `json:"id" gorm:"primaryKey;autoIncrement"`
	IDCard    string    `json:"id_card" gorm:"type:varchar(32);not null;default:''"`
	Name      string    `json:"name" gorm:"type:varchar(255);not null;default:''"`
	Score     int       `json:"score" gorm:"not null;default:0"`
	CreatedAt time.Time `json:"created_at" gorm:"type:timestamp;not null"`
}

func (Risk) TableName() string {
	return "risk"
}
